
package event_classes;
import java.util.ArrayList;


public class EventQueue {
    private ArrayList<Event> eq;
    
    // constructor
    public EventQueue() {
        eq = new ArrayList<>();
    }
   
 
    public boolean queueEvent(Event e) {
        return eq.add(e);
    }
    
    public void queueEvent(int ptr, Event e) {
        eq.add(ptr, e);
    }    
   
    public int getSize() {
        return eq.size();
    }
    
    public void removeEvent() {
        eq.remove(1);
     
    }
    
    ///////////// for testing /////////////////
    public void printEventsInQueue() {
        for (Event eq1 : eq) {
            System.out.println(eq1.getId());
        }
    }
}
